export const actionCreator = (type, val) => ({
  type: type,
  value: val,
});

export const mapStateToProps = (state) => ({
  todoList: state.todoList,
});

export const mapDispatchToProps = (dispatch) => ({
  add(func) {
    dispatch(func);
  },
  check(func) {
    dispatch(func);
  },
  deleteDone(func) {
    dispatch(func);
  },
  deleteSelect(func) {
    dispatch(func);
  },
  getData(func) {
    dispatch(func);
  },
});
